package com.blog.service.impl;

import com.blog.dao.PhotoDao;
import com.blog.dao.impl.PhotoDaoImpl;
import com.blog.entity.Photo;
import com.blog.service.PhotoService;


public class PhotoServiceImpl implements PhotoService {

    PhotoDao photoDao=new PhotoDaoImpl();

    @Override
    public int insPhoto(Photo photo) throws Exception {
        return photoDao.insPhoto(photo);
    }

    @Override
    public int updPhoto(Photo photo) throws Exception {
        return photoDao.updPhoto(photo);
    }

    @Override
    public Photo selPhoto(int id) throws Exception {
        return photoDao.selPhoto(id);
    }
}
